/*
 * Air Roommates Accounts
 *Copyright 2009 - Julien EVANO & Enguerran GILLET
 *
 *This program is free software: you can redistribute it and/or modify
 *it under the terms of the GNU General Public License as published by
 *the Free Software Foundation, either version 3 of the License, or
 *(at your option) any later version.
 *
 *This program is distributed in the hope that it will be useful,
 *but WITHOUT ANY WARRANTY; without even the implied warranty of
 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *GNU General Public License for more details.
 *
 *You should have received a copy of the GNU General Public License
 *along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *Distributed under the terms of the GNU GPL v3.
 *http://www.gnu.org/licenses/gpl-3.0.html
 */

/**
 * Actions
 */
air.trace('ARA.actions');
Ext.namespace('ARA');
ARA.actions = {
	newGroup :new Ext.Action( {
		text :'New Group',
		tooltip :'New Group',
		iconCls :'icon-group-new',
		handler : function() {
		}
	}),
	
	editGroup :new Ext.Action( {
		text :'Edit Group',
		tooltip :'Edit Group',
		iconCls :'icon-group-edit',
		handler : function() {
		}
	}),

	deleteGroup :new Ext.Action( {
		itemText :'Delete Group',
		tooltip :'Delete Group',
		iconCls :'icon-group-delete',
		disabled :true,
		handler : function() {
			Ext.Msg.confirm('Confirm',
					'Are you sure you want to delete the selected group(s)?',
					function(btn) {
						if (btn == 'yes')
						{
						}
					});
		}
	}),

	newProfil :new Ext.Action( {
		itemText :'New Profil',
		tooltip :'New Profil',
		iconCls :'icon-profil-new',
		handler : function() {
		}
	}),
	
	editProfil :new Ext.Action( {
		text :'Edit Profil',
		tooltip :'Edit Profil',
		iconCls :'icon-profil-edit',
		handler : function() {
		}
	}),

	deleteProfil :new Ext.Action( {
		itemText :'Delete Profil',
		tooltip :'Delete Profil',
		iconCls :'icon-profil-delete',
		disabled :true,
		handler : function() {
		}
	}),
	
	newEntry :new Ext.Action( {
		itemText :'New Entry',
		tooltip :'New Entry',
		iconCls :'icon-entry-new',
		handler : function() {
		}
	}),
	
	editEntry :new Ext.Action( {
		text :'Edit Entry',
		tooltip :'Edit Entry',
		iconCls :'icon-entry-edit',
		handler : function() {
		}
	}),

	deleteEntry :new Ext.Action( {
		itemText :'Delete Entry',
		tooltip :'Delete Entry',
		iconCls :'icon-entry-delete',
		disabled :true,
		handler : function() {
		}
	}),

	quit :new Ext.Action( {
		text :'Exit',
		handler : function() {
			air.NativeApplication.nativeApplication.exit();
		}
	})
};
